<h1>Imports</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Locations</th>
    <th>Autoload</th>
    <th>Muni</th>
    <th>Created At</th>
    <th></th>
    <th></th>
  </tr>

<% @imports.each do |import| %>
  <tr>
    <td><%= import.name %></td>
    <td><%= import.locations.count %></td>
    <td><%= import.autoload ? "X" : "" %></td>
    <td><%= import.muni ? "X" : "" %></td>
    <td><%= import.created_at %></td>
    <td><%= link_to 'Edit', edit_import_path(import) %></td>
    <td><%= link_to 'Destroy', import, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>
